#ifndef DTNHTTPSQS_H_
#define DTNHTTPSQS_H_

#include "includes.h"
#include <fcntl.h>
// Find the maximum commandline length
#ifdef __FreeBSD__
/* Needed for PATH_MAX, Linux doesn't need it */
#include <sys/syslimits.h>
#endif

#ifndef PATH_MAX
/* A conservative fallback */
#define PATH_MAX 1024
#endif

#define BUFSIZE 16
#define BLOCKSIZE 8192
#define COUNTER_MAX_DIGITS 9

#ifdef  __cplusplus
extern "C" {
#endif
extern void print_usage_recv();
extern void parse_options(int argc, char**argv);
extern void print_data(char* buffer, u_int length);
extern int buildfilename(char* templat, char* newfilename, int counter );
extern int handle_file_transfer(dtn_bundle_spec_t spec, dtn_bundle_payload_t payload,int* total_bytes, int counter);


#ifdef  __cplusplus
}
#endif

#endif /*DTNHTTPSQS_H_*/
